﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFong.Host
{


    public interface IHostMgt
    {
        /// <summary>
        /// 读写 宿主接入端口
        /// </summary>
        int Port { get;set; }

        /// <summary>
        /// 读写 宿主超时间
        /// </summary>
        TimeSpan Timeout { get; set; }

        /// <summary>
        /// 宿主起动入口
        /// </summary>
        /// <param name="port"></param>
        void Start(int port);

        /// <summary>
        /// 停止宿主
        /// </summary>
        void Stop();

    }
}
